package edu.sctu.fengleilin.month05.day150510.Array;

/**
 * Created by user09 on 2015/5/10.
 */
public class ArrayThree {
private  ArrayTwo[] arrayTwo;

    public ArrayThree(ArrayTwo[] arrayTwo){
        this.arrayTwo = arrayTwo;
    }

    public void  getname(){
        for(ArrayTwo arrayTwo1 : arrayTwo)
            if (arrayTwo1.getAge()>20){
                System.out.println("成年");
                System.out.println("名字"+arrayTwo1.getName()+"学号");
            }

    }
}
